import { RouteRecordRaw } from 'vue-router'
export const routerPath = [
    {
        path: '/',
        name: 'layout',
        component: () => import('../views/Layout.vue'),
        children: [
            {
                path: 'home',
                name: 'home',
                component: () => import('../views/Home.vue'),
                meta: {
                    keepAlive: true,
                },
            },
            {
                path: 'me',
                name: 'me',
                component: () => import('../views/Me.vue'),
                meta: {
                    keepAlive: false,
                },
            },
            {
                path: 'type',
                name: 'type',
                component: () => import('../views/Type.vue'),
                meta: {
                    keepAlive: false,
                },
            },
            {
                path: 'car',
                name: 'car',
                component: () => import('../views/Car.vue'),
                meta: {
                    keepAlive: false,
                },
            }
        ]
    },
    {
        path: '/search',
        name: 'search',
        component: () => import('../views/Search.vue'),
        meta: {
            keepAlive: false,
        },
    },
    //首页分类
    {
        path: '/classification',
        name: 'classification',
        component: () => import('../views/classification.vue'),
        meta: {
            keepAlive: false,
        },
    },
    //收藏
    {
        path: '/likes',
        name: 'likes',
        component: () => import('../views/likes.vue'),
        meta: {
            keepAlive: false,
        },
    },
    
    
    {
        path: '/info',
        name: 'info',
        component: () => import('../views/Info.vue'),
        meta: {
            keepAlive: false,
        },
    },
    {
        path: '/order',
        name: 'order',
        component: () => import('../views/Order.vue'),
        meta: {
            keepAlive: false,
        },
    },{
        path: '/user',
        name: 'user',
        component: () => import('../views/User.vue'),
        meta: {
            keepAlive: false,
        },
    },{
        path: '/metype',
        name: 'metype',
        component: () => import('../views/Metype.vue'),
        meta: {
            keepAlive: false,
        },
    },
];